#include <iostream>
#include <unordered_map>
#include <functional>
#include <string>
using namespace std;
void getData(int t)
{
	cout << "call getData function " << t << endl;
}
void getContent(int t)
{
	cout << "call getContent function.pars is" << t << endl;
}
std::unordered_map<std::string, std::function<void(int)>>umap;
void initMap()
{
	umap.emplace("getData", getData);
	umap.emplace("getContent", getContent);

}
int main()
{
	initMap();
	int d = 100;
	if (umap.count("getData"))
	{
		auto func = umap["getData"];
		func(d);
	}
	cout << "end" << endl;
}